package org.feiye.studyday24;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class FileWriteTest {

	public static void main(String[] args) {
		try {
			OutputStream out = new FileOutputStream("F:\\叶飞io测试\\hello.txt");
			out.write(900);
			out.write(78);
			out.write(0);
			out.write('\t');
			String s = "我喜欢听王菲的歌";
			out.write(s.getBytes("gbk"));
			out.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
